home *** CD-ROM | disk | FTP | other *** search
/ Kit PC World De Ampliacion De Windows 95 / Kit PC World de ampliacion de Windows 95.iso / lotus / lotus022.dsk / SURFNET.MPR / SCRIPT / ApproachDoc / SurfNet Form / Body / txtWebsterBrowser.s (.txt) < prev    next >
Null Bytes Alternating  |  1995-11-13  |  3KB  |  41 lines

  1. '++LotusScript Development Environment:2:5:(Options):0:66
  2.  
  3. '++LotusScript Development Environment:2:5:(Forward):0:1
  4. Declare Sub Click(Source As Textbox, X As Long, Y As Long, Flags As Long)
  5.  
  6. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7.  
  8. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9. Private Sub BindEvents(Byval Objectname_ As String)
  10.     Static Source As TEXTBOX
  11.     Set Source = Bind(Objectname_)
  12.     On Event Click From Source Call Click
  13. End Sub
  14.  
  15. '++LotusScript Development Environment:2:2:Click:1:12
  16. Sub Click(Source As Textbox, X As Long, Y As Long, Flags As Long)
  17.     Dim rval As Integer   'Return value    
  18.     
  19.     On Error 11026 Goto NoWebster
  20.     
  21.     strURL = "http://" & source.URL.text
  22.     If (Source.fldFirstDate.Text = "") Then
  23.         Source.fldFirstDate.ReadOnly = False   'So we can enter data.
  24.         Source.fldFirstDate.Text = Str(Today())
  25.         Source.fldFirstDate.ReadOnly = True   'Set it back.
  26.     End If
  27.     Source.fldLastDate.ReadOnly = False
  28.     Source.fldLastDate.Text = Str(Today())
  29.     Source.fldLastDate.ReadOnly = True
  30.     
  31.     Set CurrentApplication.ActiveView = CurrentDocument.Webster~ Browser
  32.     rval = CurrentView.Body.oleWebster.LoadPage(strURL, 0)
  33.     Goto EndLoadPage
  34.     
  35. NoWebster:
  36.     Print Err
  37.     Messagebox "You don't have the Webster browser installed.  Go to Main Menu-Setup to install the Webster browser."
  38.     Resume EndLoadPage
  39.     
  40. EndLoadPage:
  41. End Sub